[%if $updirtype==1%]
<div class="infolist" title="[%$ST.filemanage_view_updir%]">
	<table border="0" style="border-collapse:collapse" width="100%" bordercolor="#FFFFFF">
		<tr>
			<td width="5%"></td>
			<td width="35%" id="left" class="padding-left3"><img src="templates/images/fileicon/dir.png"> /[%$dirlist%]</td>
			<td width="10%">
			<td width="25%"></td>
			<td width="25%" id="infotype">
				<table border="0" style="border-collapse:collapse" bordercolor="#FFFFFF">
					<tr>
						<td><a class="setedit3" id="center" onclick="javascript:onlist('[%$uploadurl%]');" href="#body" title="[%$ST.filemanage_view_updir%]" hidefocus="true">[%$ST.filemanage_view_updir%]</a></td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
</div>
[%/if%]
<input type="hidden" name="filepath" id="filepath" value="[%$dirname%]">
[%if count($array) > 0%]
[%forlist from=$array key=list%]
<div class="infolist gallery clearfix" title="[%$array[list].loadurl2%]">
	<table border="0" style="border-collapse:collapse" width="100%" bordercolor="#FFFFFF">
		<tr>
			<td width="5%"><input type="checkbox" name="selectinfoid" value="[%$array[list].filename%]"></td>
			<td width="35%" id="left" class="padding-left3"><img src="templates/images/fileicon/[%$array[list].type%].png"> [%$array[list].filename%]</td>
			<td width="10%" id="right" class="padding-right3">[%if $array[list].bottype!='dir'%][%$array[list].size|format_size(1)%][%/if%]</td>
			<td width="25%">[%$array[list].time|timeformat(3)%]</td>
			<td width="25%" id="infotype">
				[%if $array[list].picerrid==1%]
				<table border="0" style="border-collapse:collapse" bordercolor="#FFFFFF">
					[%if $array[list].bottype=='dir'%]
					<tr>
						<td><a class="setedit3" onclick="javascript:onlist('[%$array[list].loadurl%]');" href="#body" title="[%$ST.filemanage_view_botton%]" hidefocus="true">[%$ST.filemanage_view_opendir%]</a></td>
						[%if @this->powercheck(0,123)==true %]
						<td class="padding-left3"><a class="setedit" onclick="javascript:windowsdig('[%$array[list].filename%][%$ST.filemanage_view_rename%]','iframe:index.php?archive=filemanage&action=renamedir&type=[%$array[list].type%]&path=[%$dirname%]&dirname=[%$array[list].filename%]&checkfrom=[%$checkfrom%]&fileinputid=[%$fileinputid%]&freshid='+Math.random(),'480px','200px','iframe');" href="#body" title="[%$ST.filemanage_view_rename%]" hidefocus="true">[%$ST.filemanage_view_rename%]</a></td>
						[%/if%]
					</tr>
					[%/if%]
					[%if $array[list].bottype=='img'%]
					<tr>
						<td><a class="setedit" href="[%$url%][%$array[list].filename%]" title="[%$ST.filemanage_view_botton%]" hidefocus="true" rel="prettyPhoto[gallery1]" alt="[%$dirname%][%$array[list].filename%]">[%$ST.filemanage_view_botton%]</a></td>
						[%if @this->powercheck(0,124)==true %]
						<td class="padding-left3"><a class="setedit" onclick="javascript:windowsdig('[%$array[list].filename%][%$ST.filemanage_view_edit%]','iframe:index.php?archive=filemanage&action=imagecrop&type=[%$array[list].type%]&path=[%$dirname%]&imgname=[%$array[list].filename%]&freshid='+Math.random(),'[%$array[list].windowsW%]px','[%$array[list].windowsH%]px','iframe',true,true);" href="#body" title="[%$ST.filemanage_view_edit%]" hidefocus="true">[%$ST.filemanage_view_edit%]</a></td>
						[%/if%]
						[%if $checkfrom=='edit'%]
						<td class="padding-left3"><a class="setedit" onclick="javascript:checkimageinput('[%$admin_path%][%$dirname%][%$array[list].filename%]','[%$fileinputid%]');" href="#body" title="[%$ST.filemanage_view_check%]" hidefocus="true">[%$ST.filemanage_view_check%]</a></td>
						[%elseif ($checkfrom=='input')%]
						<td class="padding-left3"><a class="setedit" onclick="javascript:checkinput('[%$dirname%][%$array[list].filename%]','[%$fileinputid%]');" href="#body" title="[%$ST.filemanage_view_check%]" hidefocus="true">[%$ST.filemanage_view_check%]</a></td>
						[%elseif ($checkfrom=='function')%]
						<td class="padding-left3"><a class="setedit" onclick="javascript:functionpic('[%$dirname%][%$array[list].filename%]','[%$fileinputid%]');" href="#body" title="[%$ST.filemanage_view_check%]" hidefocus="true">[%$ST.filemanage_view_check%]</a></td>
						[%/if%]
					</tr>
					[%/if%]
					[%if $array[list].bottype=='text'%]
					<tr>
						[%if $checkfrom=='edit'%]
						<td class="padding-left3"><a class="setedit" onclick="javascript:checkimageinput('[%$admin_path%][%$dirname%][%$array[list].filename%]','[%$fileinputid%]');" href="#body" title="[%$ST.filemanage_view_check%]" hidefocus="true">[%$ST.filemanage_view_check%]</a></td>
						[%else%]
						<td class="padding-left3"><a class="setedit" onclick="javascript:checkinput('[%$dirname%][%$array[list].filename%]','[%$fileinputid%]');" href="#body" title="[%$ST.filemanage_view_check%]" hidefocus="true">[%$ST.filemanage_view_check%]</a></td>
						[%/if%]
					</tr>
					[%/if%]
				</table>
				[%else%]
				[%$ST.filemanage_file_err%]
				[%/if%]
			</td>
		</tr>
	</table>
</div>
[%/forlist%]
[%else%]
<div class="infolist">
	<table border="0" style="border-collapse:collapse" width="100%" bordercolor="#FFFFFF">
		<tr>
			<td align="center">[%$ST.list_nothing_title%]</td>
		</tr>
	</table>
</div>
[%/if%]
<script type="text/javascript" charset="utf-8">
	var checkfrom_var="[%$checkfrom%]";
	var inputname_var="[%$fileinputid%]";
	$(document).ready(function(){
		$(".gallery a[rel^='prettyPhoto']").prettyPhoto({animationSpeed:'fast',slideshow:10000,checkfrom:checkfrom_var,inputname:inputname_var});
	});
</script>